How to use replace with substring in SQL

join shbcf.ru